package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SpffVideoInteractionsMapper;
import com.ruoyi.system.domain.SpffVideoInteractions;
import com.ruoyi.system.service.ISpffVideoInteractionsService;

/**
 * 视频互动Service业务层处理
 * 
 * @author xjj
 * @date 2025-09-11
 */
@Service
public class SpffVideoInteractionsServiceImpl implements ISpffVideoInteractionsService 
{
    @Autowired
    private SpffVideoInteractionsMapper spffVideoInteractionsMapper;

    /**
     * 查询视频互动
     * 
     * @param id 视频互动主键
     * @return 视频互动
     */
    @Override
    public SpffVideoInteractions selectSpffVideoInteractionsById(Long id)
    {
        return spffVideoInteractionsMapper.selectSpffVideoInteractionsById(id);
    }

    /**
     * 查询视频互动列表
     * 
     * @param spffVideoInteractions 视频互动
     * @return 视频互动
     */
    @Override
    public List<SpffVideoInteractions> selectSpffVideoInteractionsList(SpffVideoInteractions spffVideoInteractions)
    {
        return spffVideoInteractionsMapper.selectSpffVideoInteractionsList(spffVideoInteractions);
    }

    /**
     * 新增视频互动
     * 
     * @param spffVideoInteractions 视频互动
     * @return 结果
     */
    @Override
    public int insertSpffVideoInteractions(SpffVideoInteractions spffVideoInteractions)
    {
        return spffVideoInteractionsMapper.insertSpffVideoInteractions(spffVideoInteractions);
    }

    /**
     * 修改视频互动
     * 
     * @param spffVideoInteractions 视频互动
     * @return 结果
     */
    @Override
    public int updateSpffVideoInteractions(SpffVideoInteractions spffVideoInteractions)
    {
        return spffVideoInteractionsMapper.updateSpffVideoInteractions(spffVideoInteractions);
    }

    /**
     * 批量删除视频互动
     * 
     * @param ids 需要删除的视频互动主键
     * @return 结果
     */
    @Override
    public int deleteSpffVideoInteractionsByIds(Long[] ids)
    {
        return spffVideoInteractionsMapper.deleteSpffVideoInteractionsByIds(ids);
    }

    /**
     * 删除视频互动信息
     * 
     * @param id 视频互动主键
     * @return 结果
     */
    @Override
    public int deleteSpffVideoInteractionsById(Long id)
    {
        return spffVideoInteractionsMapper.deleteSpffVideoInteractionsById(id);
    }
}
